package news.biz;

import java.util.List;

import news.dao.INewsDao;
import news.dao.empl.NewsDaoImpl;
import news.entity.News;

public class NewsBiz {
	INewsDao newsDao=new NewsDaoImpl();
	public List<News> getAllNews() {
		return newsDao.getAllNews();
	}
	
	public boolean addNews(News news){
		return newsDao.addNews(news);
	}
	
	public int getNewsCount() {
		return newsDao.getNewsCount();
	}
	
	public List<News> getNewsByPage(int pageSize, int currentPage){
		return newsDao.getNewsByPage(pageSize, currentPage);
	}
	
}
